/*  This file is part of the comicconquer project
    Copyright (C) 2010 Reach <reach334@gmail.com>

    ComicConquer is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This software is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public 
    License along with this software.  If not, see <http://www.gnu.org/licenses/>.

*/

#ifndef STATUSDLG_H
#define STATUSDLG_H

#include "mist.h"
#include "onyx/ui/onyx_dialog.h"
#include "Configuration.h"

class StatusDlg : public ui::OnyxDialog
{
    Q_OBJECT

    //-- constructor
public:
    StatusDlg(CoconProfile& profile, int iPage, int iDivPage, int iPageCount, int disContent, QWidget* parent = 0);

    //-- static public methods
public:
    static int display(CoconProfile& profile, int iPage, int iDivPage, int iPageCount, int disContent,  QWidget* parent = 0);

    //-- private slots
private slots:
    bool event(QEvent* e);
    void keyPressEvent(QKeyEvent* event);
    void OnBattery();
    void OnClock();
    void OnOpen();
    void OnGoto();
    void OnAddBookmark();
    void OnRemoveBookmark();
    void OnManageBookmark();

    //-- private members
private:
    QHBoxLayout* m_mainlayout;
    ui::OnyxPushButton* m_bOpen;
    ui::OnyxPushButton* m_bGoto;
    ui::OnyxPushButton* m_bAddBookmark;
    ui::OnyxPushButton* m_bRemoveBookmark;
    ui::OnyxPushButton* m_bManageBookmark;

    QVector<QAbstractButton*> m_buttons;
    QVector<QAbstractButton*>::iterator m_itrButton;

    CoconProfile* m_profile;
    int m_operation;

    QTimer m_timer;

};

#endif // STATUSDLG_H
